<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ page pageEncoding="UTF-8" %>
<%@ include file="../common/common.jsp"%>
<%@ page import="jp.co.technotree.apl.api.common.Message" %>
<%@ page import="jp.co.technotree.apl.cmd.order.Odr5000Bean;" %>
<jsp:useBean id="formBean" class="jp.co.technotree.apl.cmd.order.Odr5000Bean" scope="request" />
<%
	
%>
<html>
	<head>
		<title>予備品管理システム - 予備品発注状況管理画面</title>
		<link rel="SHORTCUT ICON" href="../common/img/default/sys_icon.ico">

		<link rel='stylesheet' type='text/css' href='../../common/css/common/base.css' >
		<link rel='stylesheet' type='text/css' href='../../common/css/common/common.css'>
		<link rel='stylesheet' type='text/css' href='../../common/css/order/odr5000.css'>

		<script language="javascript" src="../../common/js/base.js"></script>
		<script language="javascript" src="../../common/js/menu/topmenu.js"></script>

		<!--ポップアップ用-->
		<link rel='stylesheet' type='text/css' href='../../common/css/popUpPc.css' >
		<script type='text/javascript' src='../../common/js/popUpPc.js'></script>
		
		<!-- システムログ -->
		<script src="../../common/js/systemlog.js"></script>

<style type='text/css'>
	.LinkItem {
		cursor: pointer;
	}
	.txtmode1 {
			 ime-mode: active;   /* 全角モード */
	}
	.txtmode2 {
				ime-mode: inactive; /* 半角モード */
	}
	.txtmode3 {
				ime-mode: disabled; /* 半角のみモード */
	}
	.ReadStyle{
				 background-color:#CCC;
	}
</style>

<script language="javascript">
function onInit(){
	//topBackChange(0);
	//httpRequest();
}
function nextPageJump(nextPage){
	mainForm = document.getElementById("F1");
	document.getElementById("nextPage").value = nextPage;
	mainForm.submit();
}

function linkJump(nextPage){
	var frm = document.main;
	if(frm.findYear.value){
		mainForm = document.getElementById("F1");
		document.getElementById("nextPage").value = nextPage;
		mainForm.submit();
	}else{
		alert_Custom("<%=Message.getMessage("WRN00010").replace("$1","年度")%>");
		return;
	}
}

//通常検索
function formSubmit() {
	var frm = document.main;
	if(frm.findYear.value){
		if(frm.findMonth.value){
			if(!(Number(frm.findMonth.value) >= 1 && Number(frm.findMonth.value) <= 12)){
				alert_Custom("<%=Message.getMessage("WRN00030").replace("$1","月")%>");
				return;
			}
		}
		frm.cmd.value = "cmd01";
		frm.submitFlag.value = "1";
		frm.submit();
	}else{
		alert_Custom("<%=Message.getMessage("WRN00010").replace("$1","年度")%>");
		return;
	}
}

//--------------------------
//-----------------------------------------------
//<!-- ポップアップ START -->

//パップアップ解除
function back(){
	document.getElementById("opAlertBtn").style.display = "none";
	document.getElementById("opAlert").style.display = "none";
	document.getElementById("opAlertButton").style.display = "none";
	document.getElementById("opAlertTop").style.display = "none";
	document.getElementById("allbackgr").style.display = "none";
}

//<!-- ポップアップ END -->
//-------------------------------------------------------------------------

//数字しか入力できないように
function numberKeyPress(){
	//備考：少数点とかマイナスを入力させるには48ではなく45かな？
	if ((event.keyCode < 48) || (event.keyCode > 57)){event.returnValue = false;};
}

</script>

	</head>

	<body onLoad="onInit()" style="margin: 0px 4px 0px 0px;">
		<form class="frmMain" name="main" id="F1" action="./odr5000" method="post" enctype="multipart/form-data" onsubmit="return false;">
			<table class="tblMain" width="100%" cellspacing="0" cellpadding="0" border="0">
				<tr>
					<td >
						<!-- Header Menu START -->
						<div class="header-title">予備品管理システム(<%=formBean.kojou%>)</div>
						<!-- Header Menu END -->
						<!-- ***** [FORM] MAIN-FORM ***** -->
						<div id="lc-out" style="z-index: 0;">
							<div id="lc-in" style="z-index: 0">
								
									<div class="subtitle">予備品発注状況管理画面</div>
									<table  border="0" align="left"  style="margin-left:20px;">
										<tr>
											<td>
												<table  border="0" width=98%>
													<tr>
														<td>
															年度：
														</td>
													</tr>
													<tr height="20px"><td></td>	</tr>
													<tr>
														<td>
															<input type="text" name="findYear" id="findYear" class="inputStyle txtmode3" style="width:120px;" onKeyPress="numberKeyPress();" maxlength="4" value="<%=formBean.getFindYear() %>">
														</td>
													</tr>
													<tr height="20px"><td></td>	</tr>
													<tr>
														<td >
															月：
														</td>
													</tr>
													<tr height="20px"><td></td>	</tr>
													<tr>
														<td>
															<input type="text" name="findMonth" id="findMonth" class="inputStyle txtmode3" style="width:120px;" onKeyPress="numberKeyPress();" maxlength="2" value="<%=formBean.getFindMonth() %>">
														</td>
													</tr>
													<tr height="40px"><td></td>	</tr>
													<tr class="TxtRight">
														<td style="width:120px;">
															<input type="image" src="../../common/img/pc/btn_search_off.png" onclick="formSubmit()" alt="検索">
														</td>
													</tr>
												</table>
											</td>
										</tr>
									</table>
									<!-- 縦線 -->
									<table align="left" style="height: 600px; margin-left: 50px;" id="border_line">
										<tr><td></td></tr>
									</table>
									<!-- 予備品在庫列 -->
									<table  border="0" align="left" style="margin-left: 50px; width: 500px;">
										<tr>
											<td>
												<table  border="0" width=98%  height="120px">
													<tr valign="top">
														<td>
															<div class="detailTitle">【予備品在庫】</div>
															<table class="detailTbl" border="0" >
																<tr>
																	<td style="width: 150px;">
																		総金額：
																	</td>
																	<td >
																		<input type="text" name="AllPrice" id="AllPrice" class="TxtRight ReadStyle" style="width: 120px; height:30px;" value="<%=formBean.getAllPrice() %>" readonly>
																	</td>
																	<td style="width: 30px;" class="TxtCenter" >
																	円
																	</td>
																	<td style="width: 120px;">
																	&nbsp;
																	</td>
																	<td style="width: 30px;" class="TxtCenter" >
																	&nbsp;
																	</td>
																</tr>
																<tr>
																	<td style="width: 150px;">
																		総カウント品金額：
																	</td>
																	<td>
																		<input type="text" name="AllCountPrice" id="AllCountPrice" class="TxtRight ReadStyle" style="width: 120px; height:30px;" value="<%=formBean.getAllCountPrice() %>" readonly>
																	</td>
																	<td style="width: 30px;" class="TxtCenter" >
																	円
																	</td>
																	<td style="width: 120px;">
																	&nbsp;
																	</td>
																	<td style="width: 30px;" class="TxtCenter" >
																	&nbsp;
																	</td>
																</tr>
															</table>
														</td>
													</tr>
												</table>
												<table  border="0" width=98%  height="120px">
													<tr valign="top">
														<td>
															<div class="detailTitle">
																<a href="javascript:linkJump('odr6000_1');">▼【予備品発注】</a>
															</div>
															<table class="detailTbl" border="0">
																<tr>
																	<td style="width: 150px;">
																		発注：
																	</td>
																	<td>
																		<input type="text" name="AllOdrSum" id="AllOdrSum" class="TxtRight ReadStyle" style="width: 120px; height:30px;" value="<%=formBean.getAllOdrSum() %>" readonly>
																	</td>
																	<td style="width: 30px;" class="TxtCenter" >
																	円
																	</td>
																	<td>
																		<input type="text" name="AllOdrCnt" id="AllOdrCnt" class="TxtRight ReadStyle" style="width: 120px; height:30px;" value="<%=formBean.getAllOdrCnt() %>" readonly>
																	</td>
																	<td style="width: 30px;" class="TxtCenter" >
																	件
																	</td>
																</tr>
																<tr>
																	<td style="width: 150px;">
																		<a href="javascript:linkJump('odr6000_2');">▼未入荷：</a>
																	</td>
																	<td>
																		<input type="text" name="AllNoOdrSum" id="AllNoOdrSum" class="TxtRight ReadStyle" style="width: 120px; height:30px;" value="<%=formBean.getAllNoOdrSum() %>" readonly>
																	</td>
																	<td style="width: 30px;" class="TxtCenter" >
																	円
																	</td>
																	<td>
																		<input type="text" name="AllNoOdrCnt" id="AllNoOdrCnt" class="TxtRight ReadStyle" style="width: 120px; height:30px;" value="<%=formBean.getAllNoOdrCnt() %>" readonly>
																	</td>
																	<td style="width: 30px;" class="TxtCenter" >
																	件
																	</td>
																</tr>
															</table>
														</td>
													</tr>
												</table>
												<!-- スペース -->
												<table  border="0" width=98%  height="180px">
													<tr valign="top">
														<td>
															&nbsp;<!-- スペース -->
														</td>
													</tr>
												</table>
												<table  border="0" width=98%  height="120px">
													<tr valign="top">
														<td>
															<div class="detailTitle">
																<a href="javascript:linkJump('ren4000_1');">▼【修理貸出】</a>
															</div>
															<table class="detailTbl" border="0">
																<tr>
																	<td style="width: 150px;">
																		出庫：
																	</td>
																	<td>
																		<input type="text" name="RepSum" id="RepSum" class="TxtRight ReadStyle" style="width: 120px; height:30px;" value="<%=formBean.getRepSum() %>" readonly>
																	</td>
																	<td style="width: 30px;" class="TxtCenter" >
																	円
																	</td>
																	<td>
																		<input type="text" name="RepCnt" id="RepCnt" class="TxtRight ReadStyle" style="width: 120px; height:30px;" value="<%=formBean.getRepCnt() %>" readonly>
																	</td>
																	<td style="width: 30px;" class="TxtCenter" >
																	件
																	</td>
																</tr>
																<tr>
																	<td style="width: 150px;">
																		<a href="javascript:linkJump('ren4000_2');">▼未返却：</a>
																	</td>
																	<td>
																		<input type="text" name="RetNoSum" id="RetNoSum"  class="TxtRight ReadStyle" style="width: 120px; height:30px;" value="<%=formBean.getRetNoSum() %>" readonly>
																	</td>
																	<td style="width: 30px;" class="TxtCenter" >
																	円
																	</td>
																	<td>
																		<input type="text" name="RetNoCnt" id="RetNoCnt"  class="TxtRight ReadStyle" style="width: 120px; height:30px;" value="<%=formBean.getRetNoCnt() %>" readonly>
																	</td>
																	<td style="width: 30px;" class="TxtCenter" >
																	件
																	</td>
																</tr>
															</table>
														</td>
													</tr>
												</table>
											</td>
										</tr>
									</table>
									<!-- 直結看板予備品発注列 -->
									<table  border="0" align="left" style="margin-left: 50px; width: 500px;">
										<tr>
											<td>
												<table  border="0" width=98%  height="120px">
													<tr valign="top">
														<td>
															&nbsp;<!-- スペース -->
														</td>
													</tr>
												</table>
												<table  border="0" width=98%  height="120px">
													<tr valign="top">
														<td>
															<div class="detailTitle">
																<a href="javascript:linkJump('odr6000_3')">▼【直結看板予備品発注】</a>
															</div>
															<table class="detailTbl" border="0">
																<tr>
																	<td style="width: 150px;">
																		発注：
																	</td>
																	<td>
																		<input type="text" name="DrctOdrSum" id="DrctOdrSum" class="TxtRight ReadStyle" style="width: 120px; height:30px;" value="<%=formBean.getDrctOdrSum() %>" readonly>
																	</td>
																	<td style="width: 30px;" class="TxtCenter" >
																	円
																	</td>
																	<td>
																		<input type="text" name="DrctOdrCnt" id="DrctOdrCnt" class="TxtRight ReadStyle" style="width: 120px; height:30px;" value="<%=formBean.getDrctOdrCnt() %>" readonly>
																	</td>
																	<td style="width: 30px;" class="TxtCenter" >
																	件
																	</td>
																</tr>
																<tr>
																	<td style="width: 150px;">
																		<a href="javascript:linkJump('odr6000_4')">▼未入荷：</a>
																	</td>
																	<td>
																		<input type="text" name="DrctNoArrSum" id="DrctNoArrSum" class="TxtRight ReadStyle" style="width: 120px; height:30px; " value="<%=formBean.getDrctNoArrSum() %>" readonly>
																	</td>
																	<td style="width: 30px;" class="TxtCenter" >
																	円
																	</td>
																	<td>
																		<input type="text" name="DrctNoArrCnt" id="DrctNoArrCnt" class="TxtRight ReadStyle" style="width: 120px; height:30px;" value="<%=formBean.getDrctNoArrCnt() %>" readonly>
																	</td>
																	<td style="width: 30px;" class="TxtCenter" >
																	件
																	</td>
																</tr>
															</table>
														</td>
													</tr>
												</table>
												<table  border="0" width=98%  height="180px">
													<tr valign="top">
														<td>
															<div class="detailTitle">
																<a href="javascript:linkJump('odr6000_5')">▼【直結看板以外予備品発注】</a>
															</div>
														<table class="detailTbl" border="0">
															<tr>
																<td style="width: 150px;">
																	発注：
																</td>
																<td>
																	<input type="text" name="OdrSum" id="OdrSum" class="TxtRight ReadStyle" style="width: 120px; height:30px;" value="<%=formBean.getOdrSum() %>" readonly>
																</td>
																<td style="width: 30px;" class="TxtCenter" >
																円
																</td>
																<td>
																	<input type="text" name="OdrCnt" id="OdrCnt" class="TxtRight ReadStyle" style="width: 120px; height:30px;" value="<%=formBean.getOdrCnt() %>" readonly>
																</td>
																<td style="width: 30px;" class="TxtCenter" >
																件
																</td>
															</tr>
															<tr>
																<td style="width: 150px;">
																	<a href="javascript:linkJump('odr6000_6')">▼未入荷：</a>
																</td>
																<td>
																	<input type="text" name="NoArrSum" id="NoArrSum" class="TxtRight ReadStyle" style="width: 120px; height:30px;" value="<%=formBean.getNoArrSum() %>" readonly>
																</td>
																<td style="width: 30px;" class="TxtCenter" >
																円
																</td>
																<td>
																	<input type="text" name="NoArrCnt" id="NoArrCnt" class="TxtRight ReadStyle" style="width: 120px; height:30px;" value="<%=formBean.getNoArrCnt() %>" readonly>
																</td>
																<td style="width: 30px;" class="TxtCenter" >
																件
															</td>
															</tr>
															<tr>
																<td style="width: 150px;">
																	<a href="javascript:linkJump('odr6000_7')">▼未完了：</a>
																</td>
																<td>
																	<input type="text" name="CmpNoSum" id="CmpNoSum" class="TxtRight ReadStyle" style="width: 120px; height:30px;" value="<%=formBean.getCmpNoSum() %>" readonly>
																</td>
																<td style="width: 30px;" class="TxtCenter" >
																円
																</td>
																<td>
																	<input type="text" name="CmpNoCnt" id="CmpNoCnt" class="TxtRight ReadStyle" style="width: 120px; height:30px;" value="<%=formBean.getCmpNoCnt() %>" readonly>
																</td>
																<td style="width: 30px;" class="TxtCenter" >
																件
																</td>
															</tr>
															<tr>
																<td style="width: 150px;">
																	<a href="javascript:linkJump('odr6000_8')">▼完了：</a>
																</td>
																<td>
																	<input type="text" name="CmpSum" id="CmpSum" class="TxtRight ReadStyle" style="width: 120px; height:30px;" value="<%=formBean.getCmpSum() %>" readonly>
																</td>
																<td style="width: 30px;" class="TxtCenter" >
																円
																</td>
																<td>
																	<input type="text" name="CmpCnt" id="CmpCnt" class="TxtRight ReadStyle" style="width: 120px; height:30px;" value="<%=formBean.getCmpCnt() %>" readonly>
																</td>
																<td style="width: 30px;" class="TxtCenter" >
																件
																</td>
															</tr>
														</table>
													</td>
												</tr>
											</table>
											<table  border="0" width=98%  height="120px">
												<tr>
													<td class="TxtRight">
														<input type="image" src="../../common/img/pc/btn_back_off.png" onclick="nextPageJump('topmenu1000')">
													</td>
												</tr>
											</table>
										</td>
									</tr>
								</table>
							</div><!-- lc-in End -->


							<!-- ログ Start -->
							<!-- ログ End -->

						</div><!-- lc-out  -->
					</td>
				</tr>
			</table>

			<input type="hidden" name="cmd" value="cmd01">
			<input type="hidden" name="submitFlag" value="0">
			<input type="hidden" id="nextPage" name="nextPage" value="">
			<input type="hidden" id="nextCate" name="nextCate" value="">
			
			<!--警告 ポップアップ---------------------------------------------------------------------------- -->
			<div id="allbackgr" class="allbackgr" style="display:none;"></div>
			<div class="opAlertBtn" id = "opAlertBtn" style="display:none;" ></div>
			<div class="opAlertButton" id = "opAlertButton" style="display:none;" ></div>
			<div class="opAlertTop" id = "opAlertTop" style="display:none; font-size:22px;">　予備品管理システム　</div>
			<div class="opAlert" id = "opAlert" style="display:none;"></div>
			<!-- -------------------------------------------------------------------------------------------- -->
		</form>
	</body>
</html>
